Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage Release #3202

Merged
merged 2 commits into from
Feb 12, 2025
Merged

Stage Release #3202

merged 2 commits into from
Feb 12, 2025

Conversation

github-actions[bot]
Copy link
Contributor

Created by Github action

agalin920 and others added 2 commits February 11, 2025 12:11
…ync (#3193)

closes #3178

This approach mimics the
[useDeferredValue](https://react.dev/reference/react/useDeferredValue )
hook value method that is only available on react 19

- Introduces a local state to handle immediate UI updates for text based
controlled inputs.
- Ensures smoother user experience by eliminating lag caused by global
store updates.
- Global state updates are now deferred, preventing excessive store
updates on key clicks in order to keep the UI update process free and
responsive.
- Syncs local state with external value changes to maintain consistency.

**This approach ensures real-time user feedback with zero lag**

An alternative but much larger scope approach would be to restructure
the component tree and optimize the use of selectors to minimize
re-renders caused the global store and prop drilling. However it could
potentially not reach the zero lag achieved by the deferring approach as
it guarantees UI update calls have the highest priority
@finnar-bin finnar-bin merged commit dd17a0f into stage Feb 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants